import { request2 } from "../axios";
var prefix = "/auth";
//微信登录
export function weChatAuth(data) {
    return request2({
        url: "/weChat/auth",
        method: "post",
        data: data
    });
}
// qq 登录
export function qChatAuth() {
    return request2({});
}
//mobile/mail 登录  ona v2
export function authLogin(data) {
    return request2({
        url: "".concat(prefix, "/routine/auth"),
        method: "post",
        data: data
    });
}
// 获取验证吗
export function authCode(data) {
    return request2({
        url: "".concat(prefix, "/routine/code"),
        method: "post",
        data: data
    });
}
// google 登录
export function googleAuth(data) {
    return request2({
        url: "".concat(prefix, "/google/auth"),
        method: "post",
        data: data
    });
}
// apple 登录
export function appleAuth(data) {
    return request2({
        url: "".concat(prefix, "/apple/auth"),
        method: "post",
        data: data
    });
}
// 注销
export function logout() {
    return request2({
        url: "".concat(prefix, "/logout"),
        method: "post"
    });
}
//twitter登录
export function twitterAuth(data) {
    return request2({
        url: "".concat(prefix, "/twitter/auth"),
        method: "post",
        data: data
    });
}
// twitter 绑定
export function twitterBind(data) {
    return request2({
        url: "".concat(prefix, "/twitter/bind"),
        method: "post",
        data: data
    });
}
//google 绑定
export function googleBind(data) {
    return request2({
        url: "".concat(prefix, "/google/bind"),
        method: "post",
        data: data
    });
}
//apple 绑定
export function appleBind(data) {
    return request2({
        url: "".concat(prefix, "/apple/bind"),
        method: "post",
        data: data
    });
}
//phone 绑定
export function phoneEmailBind(data) {
    return request2({
        url: "".concat(prefix, "/routine/bind"),
        method: "post",
        data: data
    });
}
// 获取区号
export function getCountry(appid) {
    return request2({
        url: "".concat(prefix, "/region/getRegion"),
        method: "post",
        data: {
            onaAppId: "1000"
        }
    });
}
// twitter auth v1 获取token
export function getTwitterAuthUrl(data) {
    return request2({
        url: "".concat(prefix, "/twitterV1/getAuthUrl"),
        method: "post",
        data: data
    });
}
//twitter auth v1 登录
export function twitterV1Auth(data) {
    return request2({
        url: "".concat(prefix, "/twitterV1/auth"),
        method: "post",
        data: data
    });
}
//twitter auth v1 绑定
export function twitterV1Bind(data) {
    return request2({
        url: "".concat(prefix, "/twitterV1/bind"),
        method: "post",
        data: data
    });
}

 //# sourceMappingURL=auth.js.map